﻿var filter = new Filter();
function Filter() {

    var filterByBrendUrl;
    this.init = function (properties) {
        filterByBrendUrl = properties["filterByBrendUrl"];
    }
    $("select").change(function () {
        
    });
    /*----------------filter ans sort--------------------------*/
    function runFilter() {
        sendBrend();
    }
    function sendBrend() {
        var brendId = $("#brend option:selected").val();
        $.ajax({
            url: filterByBrendUrl,
            type: "POST",
            data: brendId
            //        dataType: "json",
            //        contentType: "application/json; charset=utf-8",
            //success: function (data) {
            //var text = $.parseJSON(data.responseText); 
            //}
        });
    }


}